package com.coscoleasing.order.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("order")
    public String hi() throws InterruptedException {
    	logger.info("订单查询中");
        System.out.println("hi!");
        Thread.sleep(2000);
        return "hi!";
    }

}
